package com.mangguo.tingjian.activity.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mangguo.tingjian.activity.dto.*;
import com.mangguo.tingjian.activity.entity.DwChannelOpenApp;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mangguo.tingjian.activity.req.ActivityPageReq;
import com.mangguo.tingjian.activity.req.ActivityTrendReq;
import com.mangguo.tingjian.activity.req.ChannelPageReq;
import com.mangguo.tingjian.activity.req.ChannelTrendReq;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author auto
 * @since 2019-11-25
 */
public interface IDwChannelOpenAppService extends IService<DwChannelOpenApp> {


    /**
     * 获取今日活动数据
     * @return
     */
    TodayActivityResult getTodayActivityData(String subChannelId);

    /**
     * 获取今日活动数据
     * @return
     */
    TodayChannelResult getTodayChannelData(String channelId);

    /**
     * 获取活动的趋势数据
     * @param req
     * @return
     */
    List<ActivityTrendData> getActivityTrend(ActivityTrendReq req);

    /**
     * 获取渠道的趋势数据
     * @param req
     * @return
     */
    List<ChannelTrendData> getChannelTrend(ChannelTrendReq req);

    /**
     * 获取激活排名数据 活动
     * @return
     */
    List<TodayActivityRankResult> getTodayActivityRankResult(Integer processType);

    /**
     * 获取激活排名数据 渠道
     * @return
     */
    List<TodayChannelRankResult> getChannelActivityRankResult(Integer processType);

    /**
     * 分页获取数据 活动
     * @param req
     * @return
     */
    IPage<TodayActivityResult> getActivityPageResult(ActivityPageReq req);


    /**
     * 分页获取数据 渠道
     * @param req
     * @return
     */
    IPage<TodayChannelResult> getChannelPageResult(ChannelPageReq req);

}
